package cn.wmelon.shell.command;

import com.crmanageIptv.utils.command.remote.builder.ScriptBuilder;
import com.crmanageIptv.utils.command.remote.builder.ShellBuilder;

/**
 * @author watermelon
 * @time 2020/3/4
 */
public class TestCommand implements Command {

    @Override
    public String getScript() {
        //构建一个 能生成一个脚本文件 的字符串
        ScriptBuilder scriptbuilder = new ScriptBuilder()
                .addTextLn("echo 'a'")
                .addTextLn("echo 'b'")
                .addTextLn("mkdir aaa");
        //构建要执行的命令
        String shellBuilder = new ShellBuilder().aDragon(scriptbuilder).build();
        return shellBuilder;
    }
}
